package com.molichuxing.services.infrastructure.bean;

import com.molichuxing.framework.bean.RootBean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

public class EnterpriseScheduleCarBean extends RootBean {
    /**
     *  id
     */
    private Integer id;

    /**
     * 排期id schedule_id
     */
    private Integer scheduleId;

    /**
     * 车辆id car_id
     */
    private Integer carId;

    /**
     * 还款金额 payable
     */
    private BigDecimal payable;

    /**
     * 状态（0：未还款，1：已还款，2：已终止） state
     */
    private Integer state;

    /**
     * 创建时间 gmt_create
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间 gmt_modified
     */
    private LocalDateTime gmtModified;

    /**
     * orders_enterprise_schedule_car
     */
    private static final long serialVersionUID = 1L;

    /**
     *
     * @date 2020-06-03 15:26:22
     * @return id
     */
    @Override
    public Integer getId() {
        return id;
    }

    /**
     *
     * @date 2020-06-03 15:26:22
     * @param id
     */
    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 排期id
     * @date 2020-06-03 15:26:22
     * @return schedule_id 排期id
     */
    public Integer getScheduleId() {
        return scheduleId;
    }

    /**
     * 排期id
     * @date 2020-06-03 15:26:22
     * @param scheduleId 排期id
     */
    public void setScheduleId(Integer scheduleId) {
        this.scheduleId = scheduleId;
    }

    /**
     * 车辆id
     * @date 2020-06-03 15:26:22
     * @return car_id 车辆id
     */
    public Integer getCarId() {
        return carId;
    }

    /**
     * 车辆id
     * @date 2020-06-03 15:26:22
     * @param carId 车辆id
     */
    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    /**
     * 还款金额
     * @date 2020-06-03 15:26:22
     * @return payable 还款金额
     */
    public BigDecimal getPayable() {
        return payable;
    }

    /**
     * 还款金额
     * @date 2020-06-03 15:26:22
     * @param payable 还款金额
     */
    public void setPayable(BigDecimal payable) {
        this.payable = payable;
    }

    /**
     * 状态（0：未还款，1：已还款，2：已终止）
     * @date 2020-06-03 15:26:22
     * @return state 状态（0：未还款，1：已还款，2：已终止）
     */
    public Integer getState() {
        return state;
    }

    /**
     * 状态（0：未还款，1：已还款，2：已终止）
     * @date 2020-06-03 15:26:22
     * @param state 状态（0：未还款，1：已还款，2：已终止）
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 创建时间
     * @date 2020-06-03 15:26:22
     * @return gmt_create 创建时间
     */
    @Override
    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 创建时间
     * @date 2020-06-03 15:26:22
     * @param gmtCreate 创建时间
     */
    @Override
    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 修改时间
     * @date 2020-06-03 15:26:22
     * @return gmt_modified 修改时间
     */
    @Override
    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    /**
     * 修改时间
     * @date 2020-06-03 15:26:22
     * @param gmtModified 修改时间
     */
    @Override
    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EnterpriseScheduleCarBean other = (EnterpriseScheduleCarBean) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getScheduleId() == null ? other.getScheduleId() == null : this.getScheduleId().equals(other.getScheduleId()))
            && (this.getCarId() == null ? other.getCarId() == null : this.getCarId().equals(other.getCarId()))
            && (this.getPayable() == null ? other.getPayable() == null : this.getPayable().equals(other.getPayable()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getScheduleId() == null) ? 0 : getScheduleId().hashCode());
        result = prime * result + ((getCarId() == null) ? 0 : getCarId().hashCode());
        result = prime * result + ((getPayable() == null) ? 0 : getPayable().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", scheduleId=").append(scheduleId);
        sb.append(", carId=").append(carId);
        sb.append(", payable=").append(payable);
        sb.append(", state=").append(state);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}